export const goPage = (url, param, type) => {
	uni.$u.route({
		url: url,
		params: param ? param : {},
		type: type ? type : 'navigateTo'
	})
}

export const backPage = (delta) => {
	uni.$u.route({
		type: 'navigateBack',
		delta: delta
	})
}

export const showToast = (param, replace) => {
	uni.showToast({
		icon: replace,
		title: param
	})
}